<?php

define('FORUM_NAME', 'infoforum');
define('TOPIC_NAME', 'infotopic');

function forum_preprocess_node(&$vars, $hook){
	if (in_array($vars['type'], array(FORUM_NAME, TOPIC_NAME) )){
	  $gid = infoforum_get_node_group_from_nid_member($vars['nid']);
	  $node_group = node_load($gid);
	  $view = views_embed_view('infoforum', 'block_1', $gid);
	  $content_bottom = "<div id=\"content_bottom\">" . $view  .$vars['content'] . "</div>";
	  $vars['content'] = content_format('field_imagen', $node_group->field_imagen[0], 'image_plain') .  $content_bottom;
	}
	
}


		  
